package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"stores/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/user/login", &controllers.UserController{}, "POST:Login")
	beego.Router("/store/add", &controllers.StoreController{}, "POST:Add")
	beego.Router("/store/list", &controllers.StoreController{}, "GET:List")
	beego.Router("/store/update", &controllers.StoreController{}, "POST:Update")
}
